﻿<?xml version="1.0" encoding="utf-8" ?>
<config-entity class="RakutenProductCategoryConfig">
  <productCategoryNode context="//ns:div[@id='sc_lidAdd_xc']//ns:div[@class='riCmnSideBgW']//ns:a" />
  <productCategoryName context="." />
  <productCategoryUrl context="./@href" />
  <productCategoryCode context="./@href" >
    <replace>
      <filter original="http://(?&lt;type&gt;[^\.]+)\..+(?&lt;code&gt;\d{6,}).*" replace="${type}-${code}"  />
    </replace>
  </productCategoryCode>
  <productParentCategoryNode context="../../../ns:ul[@class='riCmnSideSecTree']/../preceding-sibling::ns:li[1]/ns:a" />
</config-entity>
